/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.p10.miage.gestionnote.model;

import fr.p10.miage.gestionnote.modelservice.FormationServices;
import java.sql.SQLException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author gensky
 */
public class Formations {
    private int idEtudiant;
    private List<Formation> listFormations;

    public Formations(int idEtudiant) {
        this.idEtudiant=idEtudiant;
        try {
            this.listFormations = FormationServices.getFormations(idEtudiant);
        } catch (SQLException ex) {
            Logger.getLogger(Formations.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public List<Formation> getListFormations() {
        return listFormations;
    }

    public void setListFormations(List<Formation> listFormations) {
        this.listFormations = listFormations;
    }
    
}
